package com.xuecheng.base.exception;


import java.io.Serializable;

/**
 * 和前端约定返回的异常信息
 */
public class RestErrorResponse implements Serializable {
    private String errMessage;
    private int errCode;

    public RestErrorResponse(String errMessage){
        this.errMessage= errMessage;
    }

    public RestErrorResponse(String errMessage,int errCode){
        this.errMessage= errMessage;
        this.errCode = errCode;
    }
    public int getErrCode(){
        return errCode;
    }
    public void setErrCode(int errCode){
        this.errCode = errCode;
    }
    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }


}
